//
//  CHGradientExtensions.m
//  Chocolat
//
//  Created by Pieter Omvlee on 1/16/09.
//  Copyright 2009 Bohemian Coding. All rights reserved.
//

#import "CHGradientExtensions.h"


@implementation NSGradient (CHGradientExtensions)

+ (void)drawVerticalGradientInRect:(NSRect)rect topColor:(NSColor *)top bottomColor:(NSColor *)bottom
{
  NSGradient *gradient = [[NSGradient alloc] initWithColorsAndLocations:bottom,0.0,top,1.0,nil];
  [gradient drawInRect:rect angle:90];
  [gradient release];
}

@end
